package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
/**
 * 产品SKU对象 biz_product_sku
 * @author sean
 * @email 2074844820@qq.com
 * @date 2023-06-13
 */
@Data
public class ProductSku extends BaseEntity<ProductSku>
{
    private static final long serialVersionUID = 1L;



    /** 图片 */
    @Excel(name = "图片")
    private String skuImg;

    /** 规格 */
    @Excel(name = "规格")
    private String unit;

    /** 库存 */
    private Integer stock;

    /** 单价 */
    private BigDecimal price;

    /** 折扣价格 */
    private BigDecimal salePrice;

    /** 条码 */
    private String upc;

    /** 产品ID */
    private String productId;

    /** 排序 */
    private Integer sort;

    /** 状态（0正常 1 停用） */
    @NotBlank(message = "状态（0正常 1 停用）不允许为空")
    private String status;
    /**
     * 氢氧skuId
     */
    private String qySkuId;

    private BigDecimal miaoshaPrice;
    private BigDecimal firstPrice;

    public void setSkuImg(String skuImg) 
    {
        this.skuImg = skuImg;
    }

    public String getSkuImg() 
    {
        return skuImg;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setStock(Integer stock) 
    {
        this.stock = stock;
    }

    public Integer getStock() 
    {
        return stock;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }

    public void setUpc(String upc) 
    {
        this.upc = upc;
    }

    public String getUpc() 
    {
        return upc;
    }

    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("userName", getUserName())
            .append("deptName", getDeptName())
            .append("companyId", getCompanyId())
            .append("skuImg", getSkuImg())
            .append("unit", getUnit())
            .append("stock", getStock())
            .append("price", getPrice())
            .append("salePrice", getSalePrice())
            .append("upc", getUpc())
            .append("productId", getProductId())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
